// 复习传引用调用: 指针

#include <iostream>
using namespace std;

void GiveMe3Floats(float* a, float* b, float* c);

int main() {
    float a, b, c;
    GiveMe3Floats(&a, &b, &c);

    cout << "程序GiveMe3Floats使用指针的情况。\n";
    cout << "3个浮点数的值分别是: "
            << a << ", "
            << b << ", "
            << c << "\n";
}


void GiveMe3Floats(float* a, float* b, float* c) {
    *a = 6.7f;
    *b = 8.1f;
    *c = 33.7f;
}